package com.atguigu.controller;

import com.atguigu.annotations.TestIdempotent;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    //自定义注解实现可拔插的幂等性设置
    @TestIdempotent
    @GetMapping("/testIdempotent")
    public boolean idempotent(){
        System.out.println("幂等性设置练习");
        return true;
    }
}
